<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>

        <ui:composition>

            <div id="post">

                <h3>Cadastro de Lista</h3>

                <div id="stylized" class="myform">



                    <h:outputLabel>Titulo: <span class="small">Cadastre um rótulo</span></h:outputLabel>
                    <h:inputText value="#{ListaController.lista.titulo}" id="titulo"></h:inputText>


                    <h:outputLabel>Disciplina: <span class="small">Seleciona a disciplian</span></h:outputLabel>
                    <h:selectOneMenu id="disciplina" value="#{ListaController.disciplinaProfessor}">
                        <f:selectItems value="#{ListaController.disciplinaProfessors}" var="disciplinaTemp" itemLabel="#{disciplinaTemp.disciplina.nome}" />
                    </h:selectOneMenu>



                    <!--                        <h:commandButton styleClass="button" onclick="dlgQuestao.show();" type="button"  value="Categoria" />-->
                    <h:commandButton styleClass="button" action="#{ListaController.persiste}" value="Salvar" id="salvar" />
                    <h:commandButton styleClass="button" type="reset" value="Limpar" id="limpar" />


                    <!--
                                            <p:dialog header="Categoria" widgetVar="dlgQuestao" modal="true" width="300" height="400">
                                                <h:outputText>Categorias</h:outputText>
                                                <br />
                    
                                                <h:commandButton styleClass="button" action="{QuestaoController.addItem}" value="Incluir" />
                                                <h:commandButton styleClass="button" type="reset" value="Limpar" />
                    
                    
                                            </p:dialog>-->



                </div>
            </div>
        </ui:composition>

    </body>
</html>
